//
//  SRDeviceInfo.h
//  sr01sdkProject
//
//  Created by Linktop on 2022/5/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, DEV_COLOR) {
    DEV_COLOR_DARK = 0,       // black
    DEV_COLOR_SILVER = 1,     // silver
    DEV_COLOR_GOLD = 2,       // gold
    DEV_COLOR_ROSE_GOLD = 3,  // rose gold
    DEV_COLOR_GOLD_MIX_SILVER = 4, //金/银混色(Gold and silver mixed)
    DEV_COLOR_PURPLE_MIX_SILVER = 5, //紫/银混色(Purple and silver mixed)
    DEV_COLOR_ROSEGOLD_MIX_SOLVER = 6, //玫瑰金/银混色(Rose gold and silver mixed)
};

typedef NS_ENUM(NSInteger, MAIN_CHIP_TYPE) {
    MAIN_CHIP_14531_00 = 0,
    MAIN_CHIP_14531_01 = 1,
    MAIN_CHIP_14592 = 2,  // sr23 芯片
}; // 主芯片型号

typedef NS_ENUM(NSUInteger, CMD_EXECTE_ERROR_REASON) {
    REASON_NONE = 0,
    REASON_1, // 设备自动测量中
    REASON_2, // 设备在运动模式测量中
    REASON_3, // 设备app测量中
    REASON_4, // 参数错误
};


@interface SRDeviceInfo : NSObject
@property(assign, nonatomic, readonly)DEV_COLOR color;
@property(assign, nonatomic, readonly)NSUInteger size;

@property(strong, nonatomic, readonly)NSString *softWareVersion;
@property(strong, nonatomic, readonly)NSString *bleMacAddress;

@property(assign, nonatomic, readonly)MAIN_CHIP_TYPE mainChip;//2023-7-26
@property(assign, nonatomic, readonly)int generation;//2023-7-26

@property(assign, nonatomic, readonly)uint8_t chargeType;//2023-7-26
@property(assign, nonatomic, readonly)BOOL needOemAuth;
@property(assign, nonatomic, readonly)BOOL supportSportmode; //2023-7-26
@property(assign, nonatomic, readonly)BOOL supportECG; //2024-4-28
@property(assign, nonatomic, readonly)NSUInteger projectId;


- (instancetype)initWithData:(NSData *)data;


@end

NS_ASSUME_NONNULL_END
